//
//  DRFoodPairingDataModel.h
//  DoctorRen
//
//  Created by Lemon on 2018/11/22.
//

#import <Foundation/Foundation.h>
#import "DRFoodPairingModel.h"
#import "DRFamilyFoodPairingModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface DRFoodPairingDataModel : NSObject

//加载数据
+(void) loadFoodPairingDataWithType:(NSInteger) type andSuccess:(void(^)(DRFoodPairingModel *model))succBlock andFail:(RequestFail)failBlock;

//换一批
+(void) matchingFoodWithType:(NSInteger) type andMealType:(NSInteger) mealType andSuccess:(void(^)(void))succBlock andFail:(RequestFail)failBlock;

//配餐背景 1：个人，2：亲友
+(void) getEnergyWithType:(NSInteger )type andSuccess:(void(^)(DREnergyTipModel *model))succBlock andFail:(RequestFail)failBlock;

//设置吃了
+(void) setEatFoodWithType:(NSInteger) type andMealType:(NSInteger) mealType andSuccess:(void(^)(NSString *msg))succBlock andFail:(RequestFail)failBlock;

//删除
+(void) delFoodWithFoodId:(NSString *)foodID andSuccess:(void(^)(void))succBlock andFail:(RequestFail)failBlock;

//拉黑
+(void) setBlackListWithFoodId:(NSString *)foodID andDietId:(NSString *)dietId andSuccess:(void(^)(DRFoodMode * model))succBlock andFail:(RequestFail)failBlock;

+(NSString *)getMealTypeWithIndex:(NSInteger)index;

+(void) saveScheme:(NSInteger) type andName:(NSString *)name andSuccess:(void(^)(void))succBlock andFail:(RequestFail)failBlock;

+(void) getFriendListSuccess:(void(^)(NSArray <DRFriendModel *>*  datas))succBlock andFail:(RequestFail)failBlock;

+(void) delDietFirendWithId:(NSString *) userId andSuccess:(void(^)(void))succBlock andFail:(RequestFail)failBlock;

//2：个人智能，4：亲友智能
+(void) matchingFoodInDayWithType:(NSInteger) type andSuccess:(void(^)(void))succBlock andFail:(RequestFail)failBlock;

//换一批
+(void) zizhu_matchingFoodWithType:(NSInteger) type andMealType:(NSInteger) mealType andSuccess:(void(^)(void))succBlock andFail:(RequestFail)failBlock;

+(void) familyDietphan:(NSString *) ctcp andSuccess:(void(^)(DRFamilyFoodPairingModel *model))succBlock andFail:(RequestFail)failBlock;

+(void) autoChangeFood:(NSString *)foodId andSuccess:(void(^)(DRFoodMode * model))succBlock andFail:(RequestFail)failBlock;

+(void) existsRecord:(NSString *)ctcp andSuccess:(void(^)(BOOL isOk))succBlock andFail:(RequestFail) failBlock;

@end

NS_ASSUME_NONNULL_END
